aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/invoice/[id]
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-27 16:14:25 -0800
committerAdam Soltys <[email protected]>2026-02-27 16:14:25 -0800
commit0a1981a48832e4cf8822a523474f67f9dfb2f27f (patch)
treef49f22ebb58d103c24c6627ae2382e8f3e401393 /src/routes/(app)/send/invoice/[id]
parent16da2cb00d16f87d02535bfdae815f83f19f251f (diff)
downloadcoinos-ui-0a1981a48832e4cf8822a523474f67f9dfb2f27f.tar.gz
coinos-ui-0a1981a48832e4cf8822a523474f67f9dfb2f27f.zip
fix svelte-check issues
Diffstat (limited to 'src/routes/(app)/send/invoice/[id]')
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index 01b4facd..61c46b76 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -25,7 +25,7 @@
let tip = $derived(data.invoice.tip);
let currency = $derived(user.currency);
let locale = $derived(loc(user));
- let amount = $state(form?.amount ?? data.invoice.amount);
+ let amount = $state((() => form?.amount ?? data.invoice.amount)());
let rate = $derived(invoice.rate * (data.rate / data.invoiceRate));
@@ -40,7 +40,7 @@
amountFiat = af;
if (trusted) {
await tick();
- formEl?.querySelector('button[type="submit"]')?.click();
+ (formEl?.querySelector('button[type="submit"]') as HTMLElement)?.click();
}
};